<?php
/**
 * Template Name: Left Sidebar
 */
get_header(); 

$page_title_area = get_theme_mod('page_title_area');

if($page_title_area == 1) : ?>
<div class="heading">
    <div class="container">
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="title">
                    <b><?php the_title(); ?></b>
                </div>
            </div>
        </div>
    </div>
</div>
<?php else : ?>
<div class="page-title-area"></div>
<?php endif; ?>                        
<div class="page-content">                                 
    <div class="container">
        <div class="row my_blog">
            <?php get_sidebar(); ?>
            <div class="col-md-9 col-sm-8 col-xs-12 left-sidebar">
                <?php while ( have_posts() ) : the_post(); ?>
                <div class="">
                    <?php if ( has_post_thumbnail() ) : ?>
                        <?php the_post_thumbnail( 'bizzboss-blog-thumbnail-image', array( 'alt' => esc_attr(get_the_title()), 'class' => 'img-responsive') ); ?>
                    <?php endif; ?>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="text sm_pages">
                                <?php the_content(); ?>
                            </div>
                        </div>
                    </div>
                </div>
                <?php // If comments are open or we have at least one comment, load up the comment template.
                    if ( comments_open() || get_comments_number() ) {
                        comments_template();
                    } 
                    wp_link_pages( array(
                        'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bizzboss' ) . '</span>',
                        'after'       => '</div>',
                        'link_before' => '<span>',
                        'link_after'  => '</span>',
                        'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'bizzboss' ) . ' </span>%',
                        'separator'   => '<span class="screen-reader-text">, </span>',
                    ) ); ?>
                <?php endwhile; ?>
            </div>
        </div>
    </div>
</div>
<?php get_footer(); ?>